home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / lib / libgtk2.0-0 / update-gdkpixbuf-loaders < prev    next >
Text File  |  2009-10-19  |  671b  |  29 lines

  1. #!/bin/sh
  2.  
  3. # this script is a no-op since 2.10.3-2
  4. exit 0
  5.  
  6. set -e
  7.  
  8. VERSION="2.18.3"
  9. APIVER="2.0"
  10. SHARED_PKG="libgtk2.0-0"
  11. TMPFILE=$(mktemp -t "gtk+$APIVER-$VERSION.XXXXXXXXXX")
  12.  
  13. echo -n "Updating the gdk-pixbuf loaders list for Gtk+ $VERSION..."
  14. "/usr/lib/$SHARED_PKG/gdk-pixbuf-query-loaders" > $TMPFILE
  15. if [ "x`cat "$TMPFILE" | grep -v '^#'`" = "x" ]; then
  16.     echo "no gdk-pixbuf loader found."
  17. else
  18.     echo "done."
  19. fi
  20. if ! test -d "/etc/gtk-$APIVER"; then
  21.     echo -n "Creating /etc/gtk-$APIVER..."
  22.     mkdir "/etc/gtk-$APIVER"
  23.     echo "done."
  24. fi
  25. cp "$TMPFILE" "/etc/gtk-$APIVER/gdk-pixbuf.loaders"
  26. chmod 644 "/etc/gtk-$APIVER/gdk-pixbuf.loaders"
  27.  
  28. rm -f "$TMPFILE"
  29.